package com.learnlogincheck.learnlogincheck.daoImpl;

import com.learnlogincheck.learnlogincheck.dao.loginInterface;
import com.learnlogincheck.learnlogincheck.entity.login;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class loginImpl implements loginInterface{
    @Autowired
    private com.learnlogincheck.learnlogincheck.dao.loginInterface loginInterface;
    /**
     * 判断用户名密码是否正确
     * @param account
     * @param password
     * @return
     */
    @Override
    public login show(String account, String password) {
        return loginInterface.show(account,password);
    }

    /**
     * 通过账号获取密码
     * @param account
     * @return
     */
    @Override
    public String getPassword(String account) {
        return loginInterface.getPassword(account);
    }

    /**
     * 通过账号获取角色
     * @param account
     * @return
     */
    @Override
    public String getRole(String account) {
        return loginInterface.getRole(account);
    }

    /**
     * 通过账号获取权限
     * @param account
     * @return
     */
    @Override
    public String getPermiss(String account) {
        return loginInterface.getPermiss(account);
    }
}
